import request from '@/utils/request'
import API from '@/api/constans'

export const getCategory = (id) =>
  request({
    url: API.API_CATEGORY,
    methods: 'GET',
    params: {
      code: id,
    },
  })
